
class RefererSession(object):
    def process_request(self, request):
        request.session.setdefault("referer", request.META.get("HTTP_REFERER", ""))
